#include<cstdio>
int main(){
	float a;
	float sum=0,count=0;
	while(1){
		scanf("%f",&a);
		if(a<0){
			break;
		}
		count++;
		sum+=a;
	}
	printf("%8.4f\n",sum);
	printf("%8.4f",sum/count);
}
